package com.service.single.service;

import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

/**
 * @Author: 一休
 * @DateTime: 2022/11/2 14:07
 */
public interface FileService {

    void uploadFile(MultipartFile file);

    void uploadBatchFiles(MultipartFile[] files);

    void downloadFile(Long id);

    void deleteFile(Long id);

    Map<String, Object> uploadChunk(MultipartFile file, int chunkNumber, int totalChunks, String identifier);

    Map<String, Object> mergeChunks(String identifier, int totalChunks);
}
